package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 问卷表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-05-09
 */
@TableName("wz_questionnaire")
public class WzQuestionnaire extends Model<WzQuestionnaire> {

    private static final long serialVersionUID = 1L;

    /**
     * 问卷id
     */
    @TableId(value = "questionnaire_id", type = IdType.AUTO)
    private Long questionnaireId;
    /**
     * 广告id
     */
    @TableField("adv_id")
    private String advId;
    /**
     * 是否有详情
     */
    @TableField("has_detail")
    private Integer hasDetail;
    /**
     * 发布用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 问卷发布类型：1-后台发布；2-用户发布
     */
    @TableField("publishing_type")
    private Integer publishingType;
    /**
     * 标题
     */
    private String title;
    /**
     * 问卷描述
     */
    private String describe;
    /**
     * 封面图片链接
     */
    @TableField("cover_url")
    private String coverUrl;
    /**
     * 缩略图
     */
    @TableField("mini_cover_url")
    private String miniCoverUrl;
    /**
     * 问卷类型：1-调查问卷；2-广告问题；3-商家问卷
     */
    private Integer type;
    /**
     * 子类型：1-广告；2-调查问卷；3-新闻；
     */
    private Integer subtype;
    /**
     * 推送类型：1-推送全部；2-推送部分；
     */
    private Integer pushtype;
    /**
     * 推送人数
     */
    @TableField("push_number")
    private Integer pushNumber;
    /**
     * 答题人数
     */
    @TableField("respondent_number")
    private Integer respondentNumber;
    /**
     * 状态：1-待使用；2-使用中；3-审核中；4-审核驳回；5-审核通过；6-发布中；7-下架；
     */
    private Integer status;
    /**
     * 最近修改人id
     */
    @TableField("modifier_id")
    private Long modifierId;
    /**
     * 赏金
     */
    private Integer reward;
    /**
     * 开始时间
     */
    @TableField("begin_time")
    private Date beginTime;
    /**
     * 结束时间
     */
    @TableField("end_time")
    private Date endTime;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 最近修改时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 删除标记:0-否1-是
     */
    @TableField("del_flag")
    private Integer delFlag;
    /**
     * 审核人id
     */
    @TableField("auditor_id")
    private Integer auditorId;
    /**
     * 审核时间
     */
    @TableField("audit_time")
    private Date auditTime;
    /**
     * 审核备注
     */
    @TableField("audit_remark")
    private String auditRemark;
    /**
     * 筛选城市
     */
    @TableField("screen_city")
    private String screenCity;
    /**
     * 筛选性别:0-全部；1-男；2-女；
     */
    @TableField("screen_gender")
    private Integer screenGender;


    public Long getQuestionnaireId() {
        return questionnaireId;
    }

    public void setQuestionnaireId(Long questionnaireId) {
        this.questionnaireId = questionnaireId;
    }

    public String getAdvId() {
        return advId;
    }

    public void setAdvId(String advId) {
        this.advId = advId;
    }

    public Integer getHasDetail() {
        return hasDetail;
    }

    public void setHasDetail(Integer hasDetail) {
        this.hasDetail = hasDetail;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public Integer getPublishingType() {
        return publishingType;
    }

    public void setPublishingType(Integer publishingType) {
        this.publishingType = publishingType;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getMiniCoverUrl() {
        return miniCoverUrl;
    }

    public void setMiniCoverUrl(String miniCoverUrl) {
        this.miniCoverUrl = miniCoverUrl;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSubtype() {
        return subtype;
    }

    public void setSubtype(Integer subtype) {
        this.subtype = subtype;
    }

    public Integer getPushtype() {
        return pushtype;
    }

    public void setPushtype(Integer pushtype) {
        this.pushtype = pushtype;
    }

    public Integer getPushNumber() {
        return pushNumber;
    }

    public void setPushNumber(Integer pushNumber) {
        this.pushNumber = pushNumber;
    }

    public Integer getRespondentNumber() {
        return respondentNumber;
    }

    public void setRespondentNumber(Integer respondentNumber) {
        this.respondentNumber = respondentNumber;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getModifierId() {
        return modifierId;
    }

    public void setModifierId(Long modifierId) {
        this.modifierId = modifierId;
    }

    public Integer getReward() {
        return reward;
    }

    public void setReward(Integer reward) {
        this.reward = reward;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getAuditorId() {
        return auditorId;
    }

    public void setAuditorId(Integer auditorId) {
        this.auditorId = auditorId;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public String getAuditRemark() {
        return auditRemark;
    }

    public void setAuditRemark(String auditRemark) {
        this.auditRemark = auditRemark;
    }

    public String getScreenCity() {
        return screenCity;
    }

    public void setScreenCity(String screenCity) {
        this.screenCity = screenCity;
    }

    public Integer getScreenGender() {
        return screenGender;
    }

    public void setScreenGender(Integer screenGender) {
        this.screenGender = screenGender;
    }

    @Override
    protected Serializable pkVal() {
        return this.questionnaireId;
    }

    @Override
    public String toString() {
        return "WzQuestionnaire{" +
        "questionnaireId=" + questionnaireId +
        ", advId=" + advId +
        ", hasDetail=" + hasDetail +
        ", userCode=" + userCode +
        ", publishingType=" + publishingType +
        ", title=" + title +
        ", describe=" + describe +
        ", coverUrl=" + coverUrl +
        ", miniCoverUrl=" + miniCoverUrl +
        ", type=" + type +
        ", subtype=" + subtype +
        ", pushtype=" + pushtype +
        ", pushNumber=" + pushNumber +
        ", respondentNumber=" + respondentNumber +
        ", status=" + status +
        ", modifierId=" + modifierId +
        ", reward=" + reward +
        ", beginTime=" + beginTime +
        ", endTime=" + endTime +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", delFlag=" + delFlag +
        ", auditorId=" + auditorId +
        ", auditTime=" + auditTime +
        ", auditRemark=" + auditRemark +
        ", screenCity=" + screenCity +
        ", screenGender=" + screenGender +
        "}";
    }
}
